package com.yanqu.road.server.cmd.activity.biaoju.cross;

import com.yanqu.road.entity.activity.biaoju.UserBiaoJuData;
import com.yanqu.road.logic.activity.biaoju.BiaoJuConfig;
import com.yanqu.road.logic.helper.UnionActivityGroupHelper;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.BiaoJuProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.biaoju.ActivityBiaoJuModule;
import com.yanqu.road.server.manger.activity.ActivityMgr;
import com.yanqu.road.server.manger.activity.biaoju.BiaoJuConfigMgr;
import com.yanqu.road.server.manger.union.GameUnionActivityGroupMgr;
import com.yanqu.road.server.protocol.GameErrorCode;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_BIAOJU_REFRESH_ESCORT_LIST_CROSS_BACK, desc = "刷新镖单列表跨服返回")
public class BiaoJuRefreshEscortListCrossBackCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        BiaoJuProto.CrossBiaoJuRefreshEscortRespMsg respMsg = BiaoJuProto.CrossBiaoJuRefreshEscortRespMsg.parseFrom(packet.getBytes());
        player.getModule(ActivityBiaoJuModule.class).refreshEscortListBack(respMsg);
    }

    @Override
    public void sendData(GamePlayer player) {
    }

}
